<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>

<%@ page import="java.sql.*" %>
<%@ page import="java.io.*" %>
<%@ page import=" src.entities.*" %>
<%@ taglib uri='http://java.sun.com/jsp/jstl/core' prefix='c'%>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
<%
if(null == session.getAttribute("authorized")) {
	response.sendRedirect("index.jsp");	
}
else {
	boolean auth = (Boolean)session.getAttribute("authorized");
	String admin = (String)session.getAttribute("userClass");
}
%>


<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Insert title here</title>

<link rel="stylesheet" href="css/reset.css"> 
<link rel="stylesheet" href="css/text.css"> 
<link rel="stylesheet" href="css/typography.css">
<link rel="stylesheet" href="css/style.css">  
<link rel="stylesheet" href="css/smoothness/jquery-ui-1.8.11.custom.css">
</head>
<body>
<ul>
<c:if test="${sessionScope.userClass == 'a' }">
	<li><a href="UserList">Admin</a></li>
	<li><a href="reports.jsp">Reports</a></li>
</c:if>
<c:if test="${sessionScope.userClass == 'a' || sessionScope.userClass == 'r' }">
	<li><a href="addRecord.jsp">Add Record</a></li>
</c:if>
<li><a href="UpdateProfile">My Profile</a></li>
<li><a href="logout.jsp">Logout</a></li>
</ul>